<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Reject</title>
</head>
<body>
<script>
  const result1 = Promise.reject(1)
  console.log('result1',result1)

  const result2 = Promise.reject(
    /*new Promise((resolve, reject)=>{

    resolve()

  })*/
    function lalala() {

    }
  )

  console.log('result2',result2)
</script>
</body>
</html>